<div class="row-fluid">
<?php foreach ($rows as $row):?> 
    <? $sLinkWithCounter = 'index.php?count=' . $row['id_site'] .'&site='.$row['site_url'] ?>
    <div class="span4">
    	<a href="<?=$sLinkWithCounter?>" target="_blank"><h2><?=$row['site_url']?></a>
    	</h2>
    	<p>
    		<a href="<?=$sLinkWithCounter?>" target="_blank"><img src="thumbs/get_img.php?url=<?=$row['site_url']?>"/></a>
    	</p>
    	<p>
            <?=$row['description']?>
    	</p>
    	<a class="btn" href="<?=$sLinkWithCounter?>" target="_blank">Перейти на сайт (<?=$row['count']?>) &raquo;</a>
    	<a class="btn" href="index.php?id=<?=$row['id_site']?>">Редактировать &raquo;</a>
    </div>
<?php endforeach?>
</div> 